#ifndef AST_DECLARATIONS_TYPE_QUALIFIER_H
#define AST_DECLARATIONS_TYPE_QUALIFIER_H

#include "../ASTNode.h"

/*
C99  6.7.3
type-qualifier:
		const
		restrict
		volatile
*/
class TypeQualifier : public ASTNode
{
public:
	enum{
		TQualConst,
		TQualRestrict,
		TQualVolatile,
	};
protected:
	TypeQualifier(void)
		: ASTNode(ASTNode::type_qualifier){};
public:
	TypeQualifier(int iType)
		: ASTNode(ASTNode::type_qualifier)
		, m_iType(iType){};
	virtual ~TypeQualifier(void);

	virtual void						codeGen();

	int									getType() const {return m_iType;};
protected:
	tiny_int						m_iType;
};


#endif


